package com.cmict.data.infra.controller.admin.consulthistory.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmict.data.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 咨询历史管理 Excel 导出 Request VO", description = "参数和 ConsultHistoryPageReqVO 是一致的")
@Data
public class ConsultHistoryExportReqVO {

    private Long issueTitleId;

    private Integer toType;

    @ApiModelProperty(value = "聊天内容")
    private String chatContent;

    @ApiModelProperty(value = "谁发送的")
    private Long fromUserId;

    @ApiModelProperty(value = "接受者id")
    private Long toTypeId;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "开始创建时间")
    private LocalDateTime beginCreateTime;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "结束创建时间")
    private LocalDateTime endCreateTime;

}
